#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>
#include <Qlabel>
#include <QPushButton>

#include "model/data.h"

using model::UserInfo;

/*
 *
 * 头像+一个名字组合控件
 *
 */

class AvatarItem : public QWidget{
public:
    AvatarItem(const QIcon& avatar, const QString& name);
    QPushButton* getAvatar(){
        return avatarBtn;
    }

private:
    QPushButton* avatarBtn;
    QLabel* nameLabel;
};




/*
 *单聊会话详情页
 *
 */

class SessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    SessionDetailWidget(QWidget* parent, const UserInfo& userInfo);
    void clickDeleteFriendBtn();
private:

    QPushButton* deleteFriendBtn;

    UserInfo userInfo;


};

#endif // SESSIONDETAILWIDGET_H
